home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / winsock / ircii2-6.zip / SRC\IRCII-2.6\MAKEFILE.IN < prev    next >
Text File  |  1994-12-28  |  11KB  |  346 lines

  1. # IRC II - written by Michael Sandrof
  2. # Copyright (c) 1991 - All Rights Reserved
  3. # Modified by Matthew Green, 1993.
  4. #
  5. # @(#)$Id: Makefile.in,v 1.22 1994/10/15 03:04:50 mrg Stab $
  6.  
  7. # targets recognised by this makefile:
  8. #   all, everything    - compiles ircii, ircserv, ircflush and wserv
  9. #   ircserv        - compiles ircserv
  10. #   ircflush        - compiles ircflush
  11. #   wserv        - compiles wserv
  12. #   install        - installs ircii, ircserv, ircflush and wserv the scripts
  13. #              and the translation tables.
  14. #   installirc        - installs ircii
  15. #   installserv        - installs ircserv
  16. #   installwserv    - installs wserv
  17. #   installflush    - installs ircflush
  18. #   installscript     - installs the scripts
  19. #   installtranslation    - installs the translation tables
  20. #   installeverything   - all of the above
  21. #   clean               - remove all .o files, core, and binaries
  22. #   disclean            - remove all files geneated by compilation/installation.
  23.  
  24. prefix = /usr/local
  25. exec_prefix = $(prefix)
  26. bindir = @bindir@
  27.  
  28. # Where the ircII binary will be installed.
  29. # 'make install' will compile and install the program
  30. INSTALL_IRC = $(bindir)/irc
  31.  
  32. # Where the ircII library will be.  Generally this is the place that
  33. # you put the scripts, help pages and translation tables.  It is
  34. # very important that you set this correctly.
  35. IRCLIB = @IRCLIB@
  36.  
  37. # Set this to the lex you want to use, and if they lex uses a library.
  38.  
  39. LEX = @LEX@
  40. LEXLIB = @LEXLIB@
  41.  
  42. CC = @CC@
  43. DEFS = @DEFS@
  44. LIBS = @LIBS@
  45.  
  46. # Set this to -g if you want to be able to debug the client, otherwise
  47. # use -O to have the compiler do some optimization instead.
  48. CFLAGS = -O
  49.  
  50. # Uncomment this if you want the binary to be striped.
  51. # LDFLAGS = -s
  52.  
  53. # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
  54. #                                                                   #
  55. #  this section should now be obsolete with gnu autoconf stuff...   #
  56. #                                                                   #
  57. # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
  58.  
  59. # Below are system specific setups.
  60. # If your system is not included in the lines below, do some experimenting
  61. # with the DEFS and program code, then if you happen to make it work
  62. # properly, mail about the changes you had to make, include system type
  63. # and version, so it can be included into ircII distribution.
  64.  
  65. # Note that if you are using a machine with a segmented architecture you will
  66. # need to compile in the large or huge memory model. This is not included
  67. # in the flags below, so you'll need to check the manual entry for cc
  68. # to find out and insert them below.
  69.  
  70. # This is the default setup that should work for BSD and similar systems.
  71. # This means, SunOS (if there is a real resolver in libc), Ultrix, Linux,
  72. # 386BSD (duh), OSF/1, Dynix (not Dynix/ptx).
  73.  
  74. # LIBS = -ltermcap
  75. # CC = cc
  76. # DEFS = 
  77.  
  78. # For sunos systems, use
  79. # LIBS = -ltermcap -lresolv
  80. # CC = cc
  81. # DEFS =
  82.  
  83. # For Solaris 2 systems, use
  84. # LIBS = -lsocket -lnsl -lelf -ltermcap
  85. # CC = cc
  86. # DEFS = -DSVR4 -DSOLARIS
  87.  
  88. # For DG/UX Aviion machines, use
  89. # LIBS = -lcurses -ldgc -lnsl
  90. # DEFS = -DHAVE_STRING_H
  91.  
  92. # For IBM RS6000 systems running AIX 3.1 or 3.2, the following will work
  93. # LIBS = -lcurses
  94. # CC = c89 -D_ALL_SOURCE
  95. # DEFS = -DPOSIX
  96.  
  97. # For IBM RTs running AIX 2.2.1, use the following:
  98. # LIBS = -lcurses
  99. # DEFS = -D_RT -DUSE_TERMIO -DBSD_INCLUDES
  100.  
  101. # For AIX/370 V1.0 use:
  102. # LIBS = -lcurses
  103. # DEFS = -D_BSD -DAIX_370
  104.  
  105. # For HP/UX 80 and 9.0,
  106. # LIBS = -lcurses
  107.  
  108. # For HPUX 7.0 systems:
  109. # LIBS = -lcurses -lBSD -lPW
  110. # DEFS = -DHPUX -DHPUX70
  111.  
  112. # For Apollo systems (10.2 and upwards) use the following with BSD defaults:
  113. # DEFS = -Asys,bsd4.3
  114.  
  115. # Use one of the following for mips systems:
  116. # Choice 1, if your system has the wait3() call
  117. # DEFS = -systype bsd43
  118. # Choice 2, if your system has the wait2() call
  119. # DEFS = -systype bsd43 -Duse_wait2
  120. #
  121. # Or, if you only have sysv installed, use one of the following:
  122. # DEFS = -DMIPS_SYSV
  123. # DEFS = -DMIPS_SYSV -Duse_wait2
  124.  
  125. # For SGI Irix systems:
  126. # DEFS = -I/usr/include/bsd
  127. # Use the following for SGI Irix systems not running Yellow Pages
  128. # LIBS = -lcurses -lPW -lbsd -lc
  129. # Use the following for SGI Irix systems running Yellow Pages
  130. # LIBS = -lsun -lcurses -lPW -lbsd -lc
  131.  
  132. # Use the following for MUNIX systems:
  133. # LIBS = -lcurses -lresolv -lbsd -lc
  134. # DEFS = -DMUNIX -DUSE_TERMIO -I/usr/include/bsd
  135.  
  136. # For the ISC22 system:
  137. # DEFS = -DISC22 -DUSE_TERMIO
  138.  
  139. # for ISC 3.0 systems,
  140. # DEFS = -DISC30 -UBSDWAIT
  141.  
  142. # For Tektronix XD88:
  143. # DEFS = -DXD88 -DUSE_TERMIO
  144. # LIBS = -ltermcap
  145.  
  146. # For Dell System V Release 4
  147. # DEFS= -DSVR4
  148. # LIBS= -lsocket -lnsl -lxtermcap
  149. # SHELL= /bin/sh
  150.  
  151. # Use the following for sysV and termio systems:
  152. # DEFS = -DUSE_TERMIO
  153. # LIBS = -lcurses
  154.  
  155. # Use the following for Sequent PTX or POSIX Complient Machines:
  156. # CC = cc
  157. # DEFS= -DDYNIXPTX
  158. # LIBS= -lsocket -linet -lnsl -lseq -lcurses
  159.  
  160. # Use the following for SCO Unix 3.2v4.0 and ODT/2.0
  161. # CC = cc -quiet
  162. # DEFS = -DSCO -DUSE_TERMIO
  163. # LIBS = -lsocket -ltermcap
  164.  
  165. # Use the following for NeXT, running NeXTstep 3.0.
  166. # CC = cc
  167. # LIBS = -ltermcap
  168. # DEFS = -DNeXT -bsd
  169.  
  170. # Use the following for Cray UNICOS systems.
  171. # CC = cc
  172. # LIBS = 
  173. # DEFS = -DUNICOS
  174.  
  175. ## You probably don't need to change anything below this line
  176.  
  177. # Uncomment the following if you want a secure IRC which binds to a
  178. # privileged port. This feature is completely useless in the current
  179. # IRC environment, but in the future some servers may use privileged
  180. # port systems to verify users connecting to them. The value of
  181. # PRIV_PORT determines the minimum port number to use.
  182. # If you modify these (including uncommenting them) you will need to
  183. # touch config.h
  184. #
  185. # If you are on a system where test-suid works, you can simply define
  186. # PP_DEFS to be PRIV_PORT_ULC and irc will change effective UID back
  187. # to a normal user immediately, and change to root when binding a port.
  188. # This feature is undocumented, but is known to work on Sun, MIPS and
  189. # Apollo (Cos we've tested them already).
  190. # PP_DEFINES = -DPRIV_PORT=667
  191. # PP_OBJS = file.o
  192. # PP_DEFINES = -DPRIV_PORT_ULC
  193.  
  194. # Full path of the directory for ircII help files.  
  195. # The help files are not within the source distribution, if you don't have
  196. # them and want them, check out your nearest ircII archive.
  197. # You may comment HELP_DIR, then the ircIIhelp service will be used.
  198. # If you don't comment it out and want to use the IRCIIHelp service anyway,
  199. # you must make sure that the directory doesn't exist.
  200. HELP_DIR = $(IRCLIB)/help
  201.  
  202. # Full path of the directory in which to copy the
  203. # IRCII scripts supplied with the code.  These scripts
  204. # may be loaded by using the LOAD command in IRCII.
  205. INSTALL_SCRIPT = $(IRCLIB)/script
  206.  
  207. # Default setting for IRC_PATH where irc will look for
  208. # its script files if the environment variable is undefined.
  209. # Usually, this should contain the same path as used for INSTALL_SCRIPT in
  210. # the Makefile, but it can contain multiple path elements
  211. # separated by colons. The path MUST lead to an existing directory,
  212. # because the 'global' script is expected to be found there.
  213. IRC_PATH = ~/.irc:$(INSTALL_SCRIPT):.
  214.  
  215. # Path for TRANSLATION variable.
  216. TRANS_PATH = $(IRCLIB)/translation
  217.  
  218. # Set the next line to the full path for installation of the ircserv program
  219. # if you wish to use it. 
  220. INSTALL_IRCSERV = $(bindir)/ircserv
  221.  
  222. # This little program is necessary to have an interactive shell
  223. # in a window of ircII. The 'shell' script uses it, so also update
  224. # the path in there, if you want to enable this.
  225. INSTALL_IRCFLUSH = $(bindir)/ircflush
  226.  
  227. # This program allows you to use screen/xterm's to put new irc windows
  228. # on new screen/xterm windows.
  229. INSTALL_WSERV = $(bindir)/wserv
  230.  
  231. ## You shouldn't have to change anything below here
  232.  
  233. srcdir = .
  234.  
  235. RM = rm -f
  236. LN = ln -s
  237. CP = cp
  238. MV = mv
  239. INSTALL = ./bsdinstall -c -m 755
  240. INSTALL_DATA = ../bsdinstall -c -m 644
  241.  
  242. VERSION = @VERSION@
  243.  
  244. SHELL = /bin/sh
  245. MAKE = make $(MFLAGS)
  246. MFLAGS ='CC=$(CC)'                    \
  247.     'CFLAGS=$(CFLAGS)'                \
  248.     'DEFS=$(DEFS)'                    \
  249.     'HELP_DIR=$(HELP_DIR)'                \
  250.     'INSTALL_IRC=$(INSTALL_IRC)'            \
  251.     'INSTALL_IRCSERV=$(INSTALL_IRCSERV)'        \
  252.     'INSTALL_WSERV=$(INSTALL_WSERV)'        \
  253.     'IRCLIB=$(IRCLIB)'                \
  254.     'IRCPATH=$(IRC_PATH)'                \
  255.     'LDFLAGS=$(LDFLAGS)'                \
  256.     'LEX=$(LEX)'                    \
  257.     'LEXLIB=$(LEXLIB)'                \
  258.     'LIBS=$(LIBS)'                    \
  259.     'LN=$(LN)'                    \
  260.     'PP_DEFS=$(PP_DEFS)'                \
  261.     'PP_OBJS=$(PP_OBJS)'                \
  262.     'PPS_DEFS=$(PPS_DEFS)'                \
  263.     'RM=$(RM)'                    \
  264.     'TRANS_DIR=$(TRANS_PATH)'
  265.  
  266. all: irc ircserv ircflush wserv
  267.  
  268. install: all installbin installscript installtranslation
  269.  
  270. irc: source/Makefile Makefile
  271.     @cd source; $(MAKE) all
  272.  
  273. installeverything: install installflush installserv installwserv \
  274.     installscript installtranslation
  275.  
  276. everything: all ircflush ircserv wserv
  277.  
  278. ircserv: source/Makefile
  279.     @cd source; $(MAKE) ircserv
  280.  
  281. ircflush: source/ircflush.c source/Makefile
  282.     @cd source; $(MAKE) ircflush
  283.  
  284. wserv: source/wserv.c source/term.c source/Makefile
  285.     @cd source; $(MAKE) wserv
  286.  
  287. installbin: installirc installserv installflush installwserv
  288.  
  289. installirc: irc installdirs
  290.     $(INSTALL) source/irc $(INSTALL_IRC)-$(VERSION)
  291.     @if test -f $(INSTALL_IRC).old; then $(RM) $(INSTALL_IRC).old; fi
  292.     @if test -f $(INSTALL_IRC); then $(MV) $(INSTALL_IRC) $(INSTALL_IRC).old; fi
  293.     $(RM) $(INSTALL_IRC)
  294.     $(LN) $(INSTALL_IRC)-$(VERSION) $(INSTALL_IRC)
  295.  
  296. installscript: installdirs
  297.     -chmod -x script/*
  298.     -@(                                \
  299.         if test -f $(INSTALL_SCRIPT)/local; then        \
  300.             if test -f script/local; then             \
  301.                 $(MV) script/local script/local.orig;    \
  302.             fi;                        \
  303.         fi                            \
  304.     )
  305.     cd script; for i in *; do $(INSTALL_DATA) $$i $(INSTALL_SCRIPT); done
  306.  
  307. installtranslation: installdirs
  308.     -chmod -x translation/*
  309.     cd translation; for i in *; do $(INSTALL_DATA) $$i $(TRANS_PATH); done
  310.  
  311. installserv: ircserv installdirs
  312.     $(INSTALL) source/ircserv $(INSTALL_IRCSERV)
  313.  
  314. installflush: ircflush installdirs
  315.     $(INSTALL) source/ircflush $(INSTALL_IRCFLUSH)
  316.  
  317. installwserv: wserv installdirs
  318.     $(INSTALL) source/wserv $(INSTALL_WSERV)
  319.  
  320. installhelp:
  321.     @echo Help files are no more within this package.  You
  322.     @echo can probably get them from the same place you got
  323.     @echo this source from.
  324.  
  325. installdirs:
  326.     @-if test ! -d $(IRCLIB); then mkdir -p $(IRCLIB); chmod go+rx $(IRCLIB); fi
  327.     @-if test ! -d $(bindir); then mkdir -p $(bindir); chmod go+rx $(bindir); fi
  328.     @-if test ! -d $(TRANS_PATH); then mkdir -p $(TRANS_PATH); chmod go+rx $(TRANS_PATH); fi
  329.     @-if test ! -d $(INSTALL_SCRIPT); then mkdir -p $(INSTALL_SCRIPT); chmod go+rx $(INSTALL_SCRIPT); fi
  330.  
  331. clena: clean
  332. clean:
  333.     @-if test -f source/Makefile; then cd source; $(MAKE) clean; fi
  334.  
  335. distclean: clean
  336.     $(RM) Makefile source/Makefile source/sig.inc config.status easyinst.status include/defs.h
  337.  
  338. lint:
  339.     @if test -f source/Makefile; then cd source; $(MAKE) lint; fi
  340.  
  341. dist: distclean
  342.     (                                 \
  343.         cd ..;                            \
  344.         tar --exclude RCS -z -c -f ircii-$(VERSION).tar.z ircii-$(VERSION);    \
  345.     )
  346.